#include "HardwareSerial.h"
#include <MPU6050.h>
#include <Wire.h>

volatile int Temp;
MPU6050 mpu;

void setup(){
  Temp = 0;
  Serial1.begin(9600);
  delay(2000);
  Serial1.println("Initialize MPU6050");
  mpu.begin(MPU6050_SCALE_2000DPS, MPU6050_RANGE_2G);
}

void loop(){
  Temp = mpu.readTemperature();
  Serial1.print(" Temp = ");
  Serial1.println(Temp);
  delay(500);

}
